import request from '@/utils/request'

// 查询补货列表
export function listReplenish(query) {
  return request({
    url: '/cs/wm/rep/replenish/list',
    method: 'get',
    params: query
  })
}

//通过id查询库存补货记录
export function getReplenish(id) {
  return request({
    url: '/cs/wm/rep/replenish/' + id,
    method: 'get'
  })
}

//新增库存补货记录
export function addReplenish(data) {
  return request({
    url: '/cs/wm/rep/replenish/add',
    method: 'post',
    data: data
  })
}

//修改库存补货记录
export function updateReplenish(data) {
  return request({
    url: '/cs/wm/rep/replenish/update',
    method: 'put',
    data: data
  })
}

//删除库存补货记录
export function delReplenish(id) {
  return request({
    url: '/cs/wm/rep/replenish/delete/' + id,
    method: 'delete'
  })
}
